import { get, post, remove, put } from '@/server/request'
import { baseApi, baseApp } from '@/server/base'

/**
 * 用户登录
 */
export function login(params: LoginParams) {
  return post(`${baseApi}/api/apk/user/login`, params)
}

/**
 * 注册
 */
export function register(params:RegisterParams) {
  return post(`${baseApi}/api/apk/user/signup`, params)
}

export type LoginParams = {
  user: string
  pass: string
}

export type RegisterParams = {
  carid: string | number
  pass: string | number
  // mail: string
}
